<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>群组推荐 - 兴趣社交</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #f0f4ff;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f1f5f9;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            box-shadow: var(--shadow);
            background-color: white;
        }
        
        .container {
            padding: 2rem 0;
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--primary-light);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .section-title i {
            color: var(--primary);
        }
        
        .section-description {
            color: var(--secondary);
            margin-bottom: 2rem;
            max-width: 800px;
        }
        
        .layout-tabs {
            margin-bottom: 2rem;
            background-color: white;
            border-radius: 0.75rem;
            box-shadow: var(--shadow);
            overflow: hidden;
        }
        
        .filter-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            padding: 1rem;
            background-color: white;
            border-radius: 0.75rem;
            box-shadow: var(--shadow);
            margin-bottom: 2rem;
        }
        
        .filter-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .filter-label {
            font-weight: 500;
            color: var(--secondary);
        }
        
        .group-card {
            background-color: white;
            border-radius: 0.75rem;
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: transform 0.3s, box-shadow 0.3s;
            margin-bottom: 1.5rem;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .group-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        /* 网格布局样式 */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        .grid-layout .group-media {
            height: 160px;
            position: relative;
            overflow: hidden;
        }
        
        .grid-layout .group-media.no-image {
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 3rem;
        }
        
        .grid-layout .group-images {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, 1fr);
            height: 100%;
            gap: 2px;
        }
        
        .grid-layout .group-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .grid-layout .group-info {
            padding: 1.25rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .grid-layout .group-name {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark);
            transition: color 0.2s;
        }
        
        .grid-layout .group-card:hover .group-name {
            color: var(--primary);
        }
        
        .grid-layout .group-desc {
            font-size: 0.9rem;
            color: var(--secondary);
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
        }
        
        /* 列表布局样式 */
        .list-layout .group-card {
            display: grid;
            grid-template-columns: 200px 1fr auto;
            gap: 1.5rem;
        }
        
        @media (max-width: 768px) {
            .list-layout .group-card {
                grid-template-columns: 1fr;
            }
        }
        
        .list-layout .group-media {
            height: 100%;
            min-height: 150px;
            position: relative;
        }
        
        .list-layout .group-media.no-image {
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 3rem;
        }
        
        .list-layout .group-images {
            display: flex;
            height: 100%;
            gap: 2px;
        }
        
        .list-layout .group-image {
            flex: 1;
            height: 100%;
            object-fit: cover;
        }
        
        .list-layout .group-info {
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
        }
        
        .list-layout .group-name {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark);
            transition: color 0.2s;
        }
        
        .list-layout .group-card:hover .group-name {
            color: var(--primary);
        }
        
        .list-layout .group-desc {
            font-size: 1rem;
            color: var(--secondary);
            margin-bottom: 1rem;
            flex: 1;
        }
        
        /* 混合布局样式 */
        .mixed-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
        }
        
        .mixed-layout .featured {
            grid-column: span 2;
            grid-row: span 1;
            display: grid;
            grid-template-columns: 1fr 1fr;
        }
        
        @media (max-width: 992px) {
            .mixed-layout .featured {
                grid-column: span 1;
                grid-template-columns: 1fr;
            }
        }
        
        .mixed-layout .group-media {
            height: 100%;
            min-height: 200px;
            position: relative;
        }
        
        .mixed-layout .group-media.no-image {
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 3rem;
        }
        
        .mixed-layout .group-images {
            display: flex;
            height: 100%;
            width: 100%;
            gap: 2px;
        }
        
        .mixed-layout .group-image {
            flex: 1;
            height: 100%;
            object-fit: cover;
        }
        
        .mixed-layout .group-info {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
        }
        
        .mixed-layout .group-name {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark);
            transition: color 0.2s;
        }
        
        .mixed-layout .group-card:hover .group-name {
            color: var(--primary);
        }
        
        .mixed-layout .group-desc {
            font-size: 1rem;
            color: var(--secondary);
            margin-bottom: 1rem;
            flex: 1;
        }
        
        /* 通用样式 */
        .group-author {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }
        
        .author-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 500;
        }
        
        .group-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            font-size: 0.85rem;
            color: var(--secondary);
            margin-bottom: 1rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .stat-item i {
            font-size: 0.9rem;
        }
        
        .group-actions {
            display: flex;
            gap: 0.75rem;
            margin-top: auto;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.375rem 0.75rem;
            border-radius: 0.375rem;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        .btn-join {
            background-color: var(--primary);
            color: white;
            border: none;
            flex: 1;
            justify-content: center;
        }
        
        .btn-join:hover {
            background-color: #4338ca;
        }
        
        .btn-like {
            background-color: transparent;
            color: var(--secondary);
            border: 1px solid var(--border);
        }
        
        .btn-like:hover, .btn-like.liked {
            color: var(--danger);
            border-color: var(--danger);
        }
        
        .btn-save {
            background-color: transparent;
            color: var(--secondary);
            border: 1px solid var(--border);
        }
        
        .btn-save:hover, .btn-save.saved {
            color: var(--primary);
            border-color: var(--primary);
        }
        
        .badge {
            position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            z-index: 1;
        }
        
        /* 标签样式 */
        .group-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .group-tag {
            background-color: var(--primary-light);
            color: var(--primary);
            padding: 0.25rem 0.75rem;
            border-radius: 999px;
            font-size: 0.8rem;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-users text-primary me-2"></i>兴趣社交
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">兴趣测试</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">群组</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">社区</a>
                    </li>
                </ul>
                <div class="d-flex align-items-center gap-3">
                    <button class="btn btn-outline-primary">登录</button>
                    <button class="btn btn-primary">注册</button>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主要内容区 -->
    <div class="container">
        <h1 class="section-title">
            <i class="fas fa-users"></i>推荐群组
        </h1>
        <p class="section-description">
            发现志同道合的朋友，加入感兴趣的群组，一起分享和交流。这里有各种主题的群组，从摄影、旅行到美食、科技，总有适合你的圈子。
        </p>
        
        <!-- 筛选栏 -->
        <div class="filter-bar">
            <div class="filter-group">
                <span class="filter-label">分类:</span>
                <select class="form-select form-select-sm">
                    <option value="">全部分类</option>
                    <option value="photography">摄影</option>
                    <option value="travel">旅行</option>
                    <option value="food">美食</option>
                    <option value="tech">科技</option>
                    <option value="sports">运动</option>
                </select>
            </div>
            <div class="filter-group">
                <span class="filter-label">排序:</span>
                <select class="form-select form-select-sm">
                    <option value="recommend">推荐</option>
                    <option value="hot">热门</option>
                    <option value="new">最新</option>
                    <option value="members">成员最多</option>
                </select>
            </div>
            <div class="filter-group">
                <span class="filter-label">活跃度:</span>
                <select class="form-select form-select-sm">
                    <option value="">全部</option>
                    <option value="high">高</option>
                    <option value="medium">中</option>
                    <option value="low">低</option>
                </select>
            </div>
            <div class="filter-group ms-auto">
                <button class="btn btn-primary btn-sm">
                    <i class="fas fa-plus me-1"></i>创建群组
                </button>
            </div>
        </div>
        
        <!-- 布局切换 -->
        <div class="layout-tabs">
            <ul class="nav nav-tabs" id="layoutTabs" role="tablist">
                <li class="nav-item" role="presentation">
                    <button class="nav-link active" id="grid-layout-tab" data-bs-toggle="tab" data-bs-target="#grid-layout" type="button" role="tab" aria-controls="grid-layout" aria-selected="true">
                        <i class="fas fa-th me-1"></i>网格布局
                    </button>
                </li>
                <li class="nav-item" role="presentation">
                    <button class="nav-link" id="list-layout-tab" data-bs-toggle="tab" data-bs-target="#list-layout" type="button" role="tab" aria-controls="list-layout" aria-selected="false">
                        <i class="fas fa-list me-1"></i>列表布局
                    </button>
                </li>
                <li class="nav-item" role="presentation">
                    <button class="nav-link" id="mixed-layout-tab" data-bs-toggle="tab" data-bs-target="#mixed-layout" type="button" role="tab" aria-controls="mixed-layout" aria-selected="false">
                        <i class="fas fa-th-large me-1"></i>混合布局
                    </button>
                </li>
            </ul>
        </div>
        
        <!-- 内容区域 -->
        <div class="tab-content" id="layoutTabsContent">
            <!-- 网格布局 -->
            <div class="tab-pane fade show active" id="grid-layout" role="tabpanel" aria-labelledby="grid-layout-tab">
                <div class="grid-layout">
                    <!-- 群组1 - 多图 -->
                    <div class="group-card">
                        <div class="group-media">
                            <div class="group-images">
                                <img src="https://picsum.photos/300/300?random=1" alt="摄影群组图片1" class="group-image">
                                <img src="https://picsum.photos/300/300?random=2" alt="摄影群组图片2" class="group-image">
                                <img src="https://picsum.photos/300/300?random=3" alt="摄影群组图片3" class="group-image">
                                <img src="https://picsum.photos/300/300?random=4" alt="摄影群组图片4" class="group-image">
                            </div>
                            <span class="badge bg-primary">热门</span>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">风光摄影爱好者</h3>
                            <p class="group-desc">分享世界各地的风光摄影作品，交流拍摄技巧和经验，组织线下采风活动。</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=101" alt="李摄影的头像" class="author-avatar">
                                <span class="author-name">李摄影</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>12.5k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>328</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>2.3k</span>
                                </div>
                            </div>
                            
                            <div class="group-actions">
                                <button class="action-btn btn-join">
                                    <i class="fas fa-user-plus"></i>
                                    <span>加入</span>
                                </button>
                                <button class="action-btn btn-like">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="action-btn btn-save">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 群组2 - 单图 -->
                    <div class="group-card">
                        <div class="group-media">
                            <div class="group-images">
                                <img src="https://picsum.photos/600/400?random=10" alt="旅行群组图片" class="group-image" style="grid-column: span 2; grid-row: span 2;">
                            </div>
                            <span class="badge bg-success">新群组</span>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">环球旅行日记</h3>
                            <p class="group-desc">记录旅行中的美好瞬间，分享旅行攻略和心得，寻找同行的旅伴。</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=102" alt="王旅行的头像" class="author-avatar">
                                <span class="author-name">王旅行</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>8.7k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>156</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>1.1k</span>
                                </div>
                            </div>
                            
                            <div class="group-actions">
                                <button class="action-btn btn-join">
                                    <i class="fas fa-user-plus"></i>
                                    <span>加入</span>
                                </button>
                                <button class="action-btn btn-like liked">
                                    <i class="fas fa-heart"></i>
                                </button>
                                <button class="action-btn btn-save">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 群组3 - 无图 -->
                    <div class="group-card">
                        <div class="group-media no-image">
                            <i class="fas fa-utensils"></i>
                            <span class="badge bg-warning">推荐</span>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">美食探店分享</h3>
                            <p class="group-desc">发现城市里的隐藏美食，分享探店体验和食谱，组织美食聚会。</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=103" alt="张美食的头像" class="author-avatar">
                                <span class="author-name">张美食</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>15.2k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>489</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>3.7k</span>
                                </div>
                            </div>
                            
                            <div class="group-actions">
                                <button class="action-btn btn-join">
                                    <i class="fas fa-user-plus"></i>
                                    <span>加入</span>
                                </button>
                                <button class="action-btn btn-like">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="action-btn btn-save saved">
                                    <i class="fas fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 群组4 - 多图 -->
                    <div class="group-card">
                        <div class="group-media">
                            <div class="group-images">
                                <img src="https://picsum.photos/300/300?random=21" alt="科技群组图片1" class="group-image">
                                <img src="https://picsum.photos/300/300?random=22" alt="科技群组图片2" class="group-image">
                                <img src="https://picsum.photos/300/300?random=23" alt="科技群组图片3" class="group-image">
                            </div>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">科技前沿讨论</h3>
                            <p class="group-desc">讨论最新科技动态，分享科技产品评测，探索未来科技趋势。</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=104" alt="刘科技的头像" class="author-avatar">
                                <span class="author-name">刘科技</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>9.8k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>652</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>1.8k</span>
                                </div>
                            </div>
                            
                            <div class="group-actions">
                                <button class="action-btn btn-join">
                                    <i class="fas fa-user-plus"></i>
                                    <span>加入</span>
                                </button>
                                <button class="action-btn btn-like">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="action-btn btn-save">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 群组5 - 单图 -->
                    <div class="group-card">
                        <div class="group-media">
                            <div class="group-images">
                                <img src="https://picsum.photos/600/400?random=30" alt="健身群组图片" class="group-image" style="grid-column: span 2; grid-row: span 2;">
                            </div>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">健身爱好者联盟</h3>
                            <p class="group-desc">分享健身经验和计划，记录健身成果，互相鼓励共同进步。</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=105" alt="赵健身的头像" class="author-avatar">
                                <span class="author-name">赵健身</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>7.3k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>215</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>1.2k</span>
                                </div>
                            </div>
                            
                            <div class="group-actions">
                                <button class="action-btn btn-join">
                                    <i class="fas fa-user-plus"></i>
                                    <span>加入</span>
                                </button>
                                <button class="action-btn btn-like liked">
                                    <i class="fas fa-heart"></i>
                                </button>
                                <button class="action-btn btn-save saved">
                                    <i class="fas fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 群组6 - 无图 -->
                    <div class="group-card">
                        <div class="group-media no-image">
                            <i class="fas fa-book"></i>
                            <span class="badge bg-primary">热门</span>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">读书分享会</h3>
                            <p class="group-desc">分享阅读心得，推荐好书，组织线下读书会，交流思想和感悟。</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=106" alt="陈读书的头像" class="author-avatar">
                                <span class="author-name">陈读书</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>6.5k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>326</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>987</span>
                                </div>
                            </div>
                            
                            <div class="group-actions">
                                <button class="action-btn btn-join">
                                    <i class="fas fa-user-plus"></i>
                                    <span>加入</span>
                                </button>
                                <button class="action-btn btn-like">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="action-btn btn-save">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 列表布局 -->
            <div class="tab-pane fade" id="list-layout" role="tabpanel" aria-labelledby="list-layout-tab">
                <div class="list-layout">
                    <!-- 群组1 - 多图 -->
                    <div class="group-card">
                        <div class="group-media">
                            <div class="group-images">
                                <img src="https://picsum.photos/300/300?random=1" alt="摄影群组图片1" class="group-image">
                                <img src="https://picsum.photos/300/300?random=2" alt="摄影群组图片2" class="group-image">
                                <img src="https://picsum.photos/300/300?random=3" alt="摄影群组图片3" class="group-image">
                            </div>
                            <span class="badge bg-primary">热门</span>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">风光摄影爱好者</h3>
                            
                            <div class="group-tags">
                                <span class="group-tag">摄影</span>
                                <span class="group-tag">风光</span>
                                <span class="group-tag">户外</span>
                            </div>
                            
                            <p class="group-desc">分享世界各地的风光摄影作品，交流拍摄技巧和经验，组织线下采风活动。无论你是专业摄影师还是摄影爱好者，都能在这里找到志同道合的朋友。我们定期举办摄影讲座和外拍活动，欢迎加入！</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=101" alt="李摄影的头像" class="author-avatar">
                                <span class="author-name">群主: 李摄影</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>浏览: 12.5k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>评论: 328</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>成员: 2.3k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-calendar-alt"></i>
                                    <span>创建于: 2022-03-15</span>
                                </div>
                            </div>
                        </div>
                        <div class="group-actions d-flex align-items-center p-1.5rem">
                            <button class="action-btn btn-join">
                                <i class="fas fa-user-plus"></i>
                                <span>加入群组</span>
                            </button>
                            <button class="action-btn btn-like">
                                <i class="far fa-heart"></i>
                                <span>128</span>
                            </button>
                            <button class="action-btn btn-save">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                    
                    <!-- 群组2 - 单图 -->
                    <div class="group-card">
                        <div class="group-media">
                            <div class="group-images">
                                <img src="https://picsum.photos/600/400?random=10" alt="旅行群组图片" class="group-image">
                            </div>
                            <span class="badge bg-success">新群组</span>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">环球旅行日记</h3>
                            
                            <div class="group-tags">
                                <span class="group-tag">旅行</span>
                                <span class="group-tag">攻略</span>
                                <span class="group-tag">结伴</span>
                            </div>
                            
                            <p class="group-desc">记录旅行中的美好瞬间，分享旅行攻略和心得，寻找同行的旅伴。无论你喜欢独自旅行还是结伴而行，这里都能找到有用的信息和有趣的伙伴。我们的成员来自世界各地，分享不同的文化和风景。</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=102" alt="王旅行的头像" class="author-avatar">
                                <span class="author-name">群主: 王旅行</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>浏览: 8.7k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>评论: 156</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>成员: 1.1k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-calendar-alt"></i>
                                    <span>创建于: 2023-05-22</span>
                                </div>
                            </div>
                        </div>
                        <div class="group-actions d-flex align-items-center p-1.5rem">
                            <button class="action-btn btn-join">
                                <i class="fas fa-user-plus"></i>
                                <span>加入群组</span>
                            </button>
                            <button class="action-btn btn-like liked">
                                <i class="fas fa-heart"></i>
                                <span>86</span>
                            </button>
                            <button class="action-btn btn-save">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                    
                    <!-- 群组3 - 无图 -->
                    <div class="group-card">
                        <div class="group-media no-image">
                            <i class="fas fa-utensils"></i>
                            <span class="badge bg-warning">推荐</span>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">美食探店分享</h3>
                            
                            <div class="group-tags">
                                <span class="group-tag">美食</span>
                                <span class="group-tag">探店</span>
                                <span class="group-tag">烹饪</span>
                            </div>
                            
                            <p class="group-desc">发现城市里的隐藏美食，分享探店体验和食谱，组织美食聚会。从街边小吃到高档餐厅，从家常菜到异国料理，这里有各种美食相关的分享和讨论。定期组织线下美食探店活动，让我们一起探索美食的世界。</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=103" alt="张美食的头像" class="author-avatar">
                                <span class="author-name">群主: 张美食</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>浏览: 15.2k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>评论: 489</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>成员: 3.7k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-calendar-alt"></i>
                                    <span>创建于: 2021-11-05</span>
                                </div>
                            </div>
                        </div>
                        <div class="group-actions d-flex align-items-center p-1.5rem">
                            <button class="action-btn btn-join">
                                <i class="fas fa-user-plus"></i>
                                <span>加入群组</span>
                            </button>
                            <button class="action-btn btn-like">
                                <i class="far fa-heart"></i>
                                <span>215</span>
                            </button>
                            <button class="action-btn btn-save saved">
                                <i class="fas fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 混合布局 -->
            <div class="tab-pane fade" id="mixed-layout" role="tabpanel" aria-labelledby="mixed-layout-tab">
                <div class="mixed-layout">
                    <!-- 精选群组 - 多图 -->
                    <div class="group-card featured">
                        <div class="group-media">
                            <div class="group-images">
                                <img src="https://picsum.photos/600/400?random=1" alt="摄影群组图片1" class="group-image">
                                <img src="https://picsum.photos/600/400?random=2" alt="摄影群组图片2" class="group-image">
                            </div>
                            <span class="badge bg-primary">精选</span>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">风光摄影爱好者</h3>
                            
                            <div class="group-tags">
                                <span class="group-tag">摄影</span>
                                <span class="group-tag">风光</span>
                                <span class="group-tag">户外</span>
                            </div>
                            
                            <p class="group-desc">分享世界各地的风光摄影作品，交流拍摄技巧和经验，组织线下采风活动。无论你是专业摄影师还是摄影爱好者，都能在这里找到志同道合的朋友。</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=101" alt="李摄影的头像" class="author-avatar">
                                <span class="author-name">群主: 李摄影</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>浏览: 12.5k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>评论: 328</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>成员: 2.3k</span>
                                </div>
                            </div>
                            
                            <div class="group-actions">
                                <button class="action-btn btn-join">
                                    <i class="fas fa-user-plus"></i>
                                    <span>加入群组</span>
                                </button>
                                <button class="action-btn btn-like">
                                    <i class="far fa-heart"></i>
                                    <span>128</span>
                                </button>
                                <button class="action-btn btn-save">
                                    <i class="far fa-bookmark"></i>
                                    <span>收藏</span>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 群组2 - 单图 -->
                    <div class="group-card">
                        <div class="group-media">
                            <div class="group-images">
                                <img src="https://picsum.photos/600/400?random=10" alt="旅行群组图片" class="group-image">
                            </div>
                            <span class="badge bg-success">新群组</span>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">环球旅行日记</h3>
                            
                            <div class="group-tags">
                                <span class="group-tag">旅行</span>
                                <span class="group-tag">攻略</span>
                            </div>
                            
                            <p class="group-desc">记录旅行中的美好瞬间，分享旅行攻略和心得，寻找同行的旅伴。</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=102" alt="王旅行的头像" class="author-avatar">
                                <span class="author-name">王旅行</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>8.7k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>156</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>1.1k</span>
                                </div>
                            </div>
                            
                            <div class="group-actions">
                                <button class="action-btn btn-join">
                                    <i class="fas fa-user-plus"></i>
                                    <span>加入</span>
                                </button>
                                <button class="action-btn btn-like liked">
                                    <i class="fas fa-heart"></i>
                                    <span>86</span>
                                </button>
                                <button class="action-btn btn-save">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 群组3 - 无图 -->
                    <div class="group-card">
                        <div class="group-media no-image">
                            <i class="fas fa-utensils"></i>
                            <span class="badge bg-warning">推荐</span>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">美食探店分享</h3>
                            
                            <div class="group-tags">
                                <span class="group-tag">美食</span>
                                <span class="group-tag">探店</span>
                            </div>
                            
                            <p class="group-desc">发现城市里的隐藏美食，分享探店体验和食谱，组织美食聚会。</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=103" alt="张美食的头像" class="author-avatar">
                                <span class="author-name">张美食</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>15.2k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>489</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>3.7k</span>
                                </div>
                            </div>
                            
                            <div class="group-actions">
                                <button class="action-btn btn-join">
                                    <i class="fas fa-user-plus"></i>
                                    <span>加入</span>
                                </button>
                                <button class="action-btn btn-like">
                                    <i class="far fa-heart"></i>
                                    <span>215</span>
                                </button>
                                <button class="action-btn btn-save saved">
                                    <i class="fas fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 群组4 - 多图 -->
                    <div class="group-card">
                        <div class="group-media">
                            <div class="group-images">
                                <img src="https://picsum.photos/300/300?random=21" alt="科技群组图片1" class="group-image">
                                <img src="https://picsum.photos/300/300?random=22" alt="科技群组图片2" class="group-image">
                                <img src="https://picsum.photos/300/300?random=23" alt="科技群组图片3" class="group-image">
                            </div>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">科技前沿讨论</h3>
                            
                            <div class="group-tags">
                                <span class="group-tag">科技</span>
                                <span class="group-tag">创新</span>
                            </div>
                            
                            <p class="group-desc">讨论最新科技动态，分享科技产品评测，探索未来科技趋势。</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=104" alt="刘科技的头像" class="author-avatar">
                                <span class="author-name">刘科技</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>9.8k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>652</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>1.8k</span>
                                </div>
                            </div>
                            
                            <div class="group-actions">
                                <button class="action-btn btn-join">
                                    <i class="fas fa-user-plus"></i>
                                    <span>加入</span>
                                </button>
                                <button class="action-btn btn-like">
                                    <i class="far fa-heart"></i>
                                    <span>97</span>
                                </button>
                                <button class="action-btn btn-save">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 群组5 - 单图 -->
                    <div class="group-card">
                        <div class="group-media">
                            <div class="group-images">
                                <img src="https://picsum.photos/600/400?random=30" alt="健身群组图片" class="group-image">
                            </div>
                        </div>
                        <div class="group-info">
                            <h3 class="group-name">健身爱好者联盟</h3>
                            
                            <div class="group-tags">
                                <span class="group-tag">健身</span>
                                <span class="group-tag">运动</span>
                            </div>
                            
                            <p class="group-desc">分享健身经验和计划，记录健身成果，互相鼓励共同进步。</p>
                            
                            <div class="group-author">
                                <img src="https://picsum.photos/100/100?random=105" alt="赵健身的头像" class="author-avatar">
                                <span class="author-name">赵健身</span>
                            </div>
                            
                            <div class="group-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>7.3k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>215</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>1.2k</span>
                                </div>
                            </div>
                            
                            <div class="group-actions">
                                <button class="action-btn btn-join">
                                    <i class="fas fa-user-plus"></i>
                                    <span>加入</span>
                                </button>
                                <button class="action-btn btn-like liked">
                                    <i class="fas fa-heart"></i>
                                    <span>64</span>
                                </button>
                                <button class="action-btn btn-save saved">
                                    <i class="fas fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 加载更多 -->
        <div class="text-center mt-4">
            <button class="btn btn-outline-primary">
                <i class="fas fa-sync-alt me-1"></i>加载更多群组
            </button>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 点赞功能
            const likeButtons = document.querySelectorAll('.btn-like');
            likeButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countElement = this.querySelector('span');
                    
                    if (countElement) {
                        let count = parseInt(countElement.textContent);
                        
                        if (this.classList.contains('liked')) {
                            // 取消点赞
                            this.classList.remove('liked');
                            icon.classList.remove('fas');
                            icon.classList.add('far');
                            countElement.textContent = count - 1;
                        } else {
                            // 点赞
                            this.classList.add('liked');
                            icon.classList.remove('far');
                            icon.classList.add('fas');
                            countElement.textContent = count + 1;
                        }
                    } else {
                        // 没有计数的点赞按钮
                        if (this.classList.contains('liked')) {
                            this.classList.remove('liked');
                            icon.classList.remove('fas');
                            icon.classList.add('far');
                        } else {
                            this.classList.add('liked');
                            icon.classList.remove('far');
                            icon.classList.add('fas');
                        }
                    }
                    
                    // 显示通知
                    showNotification(this.classList.contains('liked') ? '点赞成功' : '取消点赞');
                });
            });
            
            // 收藏功能
            const saveButtons = document.querySelectorAll('.btn-save');
            saveButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    
                    if (this.classList.contains('saved')) {
                        // 取消收藏
                        this.classList.remove('saved');
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        showNotification('取消收藏');
                    } else {
                        // 收藏
                        this.classList.add('saved');
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        showNotification('收藏成功');
                    }
                });
            });
            
            // 加入群组功能
            const joinButtons = document.querySelectorAll('.btn-join');
            joinButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const originalText = this.innerHTML;
                    this.innerHTML = '<i class="fas fa-check"></i><span>已加入</span>';
                    this.classList.add('bg-success');
                    this.classList.remove('bg-primary');
                    
                    showNotification('成功加入群组');
                    
                    // 防止重复点击
                    this.disabled = true;
                });
            });
            
            
        });
    </script>
</body>
</html>
    
